package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @author 朽
 */
@TableName(value ="cart_info")
@Data
public class CartInfo implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * skuId
     */
    @TableField(value = "sku_id")
    private Long skuId;

    /**
     * 选中状态
     */
    @TableField(value = "check")
    private Integer check;

    /**
     * 数量
     */
    @TableField(value = "count")
    private Integer count;

    /**
     * 销售属性（json格式）
     */
    @TableField(value = "sale_attrs")
    private String saleAttrs;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}